<script>
	function checkpswd(val) {
		if($('#pswd').val()<>val) {
			$('#pswdmsg2').html('两次输入的密码不一样');
			$('#pswdmsg2').css('color','Red');
		}else {
			$('#pswdmsg2').html('两次输入一致');
			$('#pswdmsg2').css('color','Green');
		}
	}
</script>

<form action="index.php" method="post">
<input type='hidden' name='ptype' value='{ptype}' />
<input type='hidden' name='pfile' value='{pfile}' />
<input type='hidden' name='action' value='update' />
<input type="hidden" name="id" value="{id}" />
<div class="adminborder">
	<div class="adminhead">编辑用户</div>
	<div class="cat" style="text-align: center;">-==必填内容==-</div>
	<div class="b0">
		<div style="width: 30%;padding-right: 1%;text-align: right;">用 户 名:</div>
		<div style="width: 68%;"><input type="text" name="name" id="name" value="{name}" disabled="disabled" /> 如不是特别需要，请不要修改用户名 <input type="button" value="修改" onclick="javascript:if(this.value=='修改') {this.value='取消';$$('name').disabled=false;}else {this.value='修改';$$('name').disabled=true;}" /></div>
	</div>
	<div class="b1">
		<div style="width: 30%;padding-right: 1%;text-align: right;">新 密 码:</div>
		<div style="width: 68%;"><input type="password" size="20" maxlength="75" name="pswd" id="pswd" /> 如果不更改密码此处请留空</div>
	</div>
	<div class="b0">
		<div style="width: 30%;padding-right: 1%;text-align: right;">重复密码:</div>
		<div style="width: 68%;"><input type="password" size="20" maxlength="75" name="pswd2" onblur="checkpswd(this.value);" /><span id="pswdmsg2"></span></div>
	</div>
	<div class="b1">
		<div style="width: 30%;padding-right: 1%;text-align: right;">电子邮件:</div>
		<div style="width: 68%;"><input type="text" size="20" maxlength="75" name="email" value="{email}" /></div>
	</div>
	<div class="bt"><input type="submit" value=" 提 交 " /> &nbsp; &nbsp;<input type="reset" value=" 重 置 " /> &nbsp;<input type="button" value=" 返 回 " onclick="history.go(-1)"/></div>
</div>
</form>
